// socket-response.helper.ts

import { Socket } from 'socket.io';
import { SocketEventPayloads, SocketEvent } from './interfaces/events.interface';

export class SocketResponseHelper {
  /** 发送错误消息，专用于 sendMessage 类型 */
  static sendError(client: Socket, extra: SocketEventPayloads[SocketEvent.SendError]) {
    client.emit(SocketEvent.SendError, extra);
  }
}
